package com.atmilan.quartz.model.entity.orange;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * orange商品数据源
 * </p>
 *
 * @author wuzp
 * @since 2021-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orange_product")
@ApiModel(value="OrangeProduct对象", description="orange商品数据源")
public class OrangeProduct extends Model<OrangeProduct> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "自增主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品id")
    private String itemId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "组商品id 代表这商品归属到某一组下的商品 目前暂无")
    private String groupId;

    @ApiModelProperty(value = "一级类目名称")
    private String firstCateName;

    @ApiModelProperty(value = "二级类目名称")
    private String secondCateName;

    @ApiModelProperty(value = "三级类目名称")
    private String thirdCateName;

    @ApiModelProperty(value = "一级类目id")
    private Long firstCateId;

    @ApiModelProperty(value = "二级类目id")
    private Long secondCateId;

    @ApiModelProperty(value = "三级类目id")
    private Long thirdCateId;

    @ApiModelProperty(value = "货币单位 参考货币字典")
    private String currency;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "商品原始标题")
    private String originalName;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @ApiModelProperty(value = "商品描述")
    @TableField("`desc`")
    private String desc;

    @ApiModelProperty(value = "图文详情 html片段")
    private String richDesc;

    @ApiModelProperty(value = "是或赠品( 0不是 1是)")
    private Integer gift;

    @ApiModelProperty(value = "是否预售商品(0不是 1是)")
    private Integer presell;

    @ApiModelProperty(value = "商品上下架状态(0下架 1上架) 下架商品即为不可售")
    private Integer shelfStatus;

    @ApiModelProperty(value = "图片数组")
    private String imageList;

    @ApiModelProperty(value = "最后一次拉取时间")
    private Date lastPushTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
